package exia.java.core.entities;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import exia.java.core.entities.base.BaseCommande;

/**
 * 
 * @author Jeannette Sebastien
 *
 */
public class Commande extends BaseCommande implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id;
	private Utilisateur idClient;
	private BigDecimal montant;
	private boolean reglee;
	private Date date;
	
	/**
	 * 
	 */
	public Commande(){
		super();
	}

	/**
	 * 
	 * @param id
	 * @param idClient
	 * @param montant
	 * @param reglee
	 * @param date
	 */
	public Commande(final int id, final Utilisateur idClient,
			final BigDecimal montant, final boolean reglee,
			final Date date){
		super();
		this.id = id;
		this.idClient = idClient;
		this.montant = montant;
		this.reglee = reglee;
		this.date = date;
	}
	
	/**
	 * 
	 * @return
	 */
	public int getId() {
		return this.id;
	}

	/**
	 * 
	 * @param id
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * 
	 * @return
	 */
	public Utilisateur getClient() {
		return this.idClient;
	}

	/**
	 * 
	 * @param idClient
	 */
	public void setClient(Utilisateur client) {
		this.idClient = client;
	}

	/**
	 * 
	 * @return
	 */
	public BigDecimal getMontant() {
		return this.montant;
	}

	/**
	 * 
	 * @param montant
	 */
	public void setMontant(BigDecimal montant) {
		this.montant = montant;
	}

	/**
	 * 
	 * @return
	 */
	public boolean isReglee() {
		return this.reglee;
	}

	/**
	 * 
	 * @param reglee
	 */
	public void setReglee(boolean reglee) {
		this.reglee = reglee;
	}

	/**
	 * 
	 * @return
	 */
	public Date getDate() {
		return this.date;
	}

	/**
	 * 
	 * @param date
	 */
	public void setDate(Date date) {
		this.date = date;
	}	
	
}
